package com.meta.act.app.system.mapper;

import com.meta.act.app.tenant.entity.TenantMenuRelate;
import com.meta.act.app.tenant.req.ro.TenantMenuRelateRo;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 
 *
 * @author M.simple
 * @email 1111111111111@qq.com
 * @date 2020-11-24 20:14:58
 */
@Repository
public interface TenantMenuRelateMapper {

	/**
	 * insert tenantMenuRelate info
	 * @method insertTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return void
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	void insertTenantMenuRelate(TenantMenuRelate tenantMenuRelate);

	/**
	 * batchInsert tenantMenuRelate info
	 * @method insertTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return void
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	void batchInsertTenantMenuRelate(@Param("list") List<TenantMenuRelate> tenantMenuRelates);

	/**
	 * update tenantMenuRelate info
	 * @method updateTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return int
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	int updateTenantMenuRelate(TenantMenuRelate tenantMenuRelate);

	/**
	 * update tenantMenuRelate info by Pk
	 * @method updateTenantMenuRelateByPk
	 * @param       tenantMenuRelate:
	 * @return int
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	int updateTenantMenuRelateByPk(TenantMenuRelate tenantMenuRelate);

	/**
	 * list tenantMenuRelate info
	 * @method listTenantMenuRelate
	 * @param       tenantMenuRelate:
	 * @return List<TenantMenuRelate>
	 * @author      M.simple
	 * @date        2020-11-24 20:14:58
	 */
	List<TenantMenuRelate> listTenantMenuRelate(TenantMenuRelateRo tenantMenuRelateRo);

}
